/**
 * Copyright (c) 2010-2011 julewa.com.  
 * All rights reserved. 
 * 
 * @author Huang Benhua
 * @date 2011-7-20
 * 
**/
package com.julewa.db;

/*
 * 用以返回常规的数据错误
 */
public enum DataState {
	NORMAL(0),
	IS_NULL(1),
	TOO_SMALL(2),
	TOO_BIG(3),
	IS_EMPTY(4),
	TOO_SHORT(5),
	OVER_SIZE(6),
	ERROR_FORMAT(7),
	;
	private int value;
	private String code;
	private DataState(int val){
		value = val;
		code = name().toLowerCase();
	}
	public String getName(){
		return name();
	}
	public String getCode(){
		return code;
	};
	public int getValue(){
		return value;
	}
}
